package com.hippoDocker.security.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hippoDocker.commons.entities.CommonResult;
import com.hippoDocker.security.dao.UmsMemberDao;
import com.hippoDocker.security.entity.UmsMember;
import com.hippoDocker.security.service.UmsMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 会员表(UmsMember)表服务实现类
 *
 * @author makejava
 * @since 2022-07-26 15:52:11
 */
@Service
public class UmsMemberServiceImpl extends ServiceImpl<UmsMemberDao,UmsMember> implements UmsMemberService {

    @Override
    public CommonResult selectAll() {
        //获取mapper（UmsMemberDao）
        UmsMemberDao umsMemberDao = getBaseMapper();
        return CommonResult.success(umsMemberDao.selectAll());
    }

    @Override
    public CommonResult selectOneById(Long id) {
        //获取mapper（UmsMemberDao）
        UmsMemberDao umsMemberDao = getBaseMapper();
        return CommonResult.success(umsMemberDao.selectById(id));
    }
}
